/*CodeBuilder v1.0.4 by 2021/5/18 16:52:58 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Dict_Area : EntityBase
	{
		private System.String _AreaCode;
		/// <summary>
		/// AreaCode
		/// </summary>
		[Entity(CNAreaCode, 0, true, IsPrimaryKey = true)]
		public System.String AreaCode
		{
			get { return _AreaCode; }
			set
			{
				if (!OnPropertyChanged(CNAreaCode, _AreaCode, value)) return;
				_AreaCode = value;
				SetFieldChanged(CNAreaCode) ;
			}
		}

		private System.Int32 _AreaLevel;
		/// <summary>
		/// AreaLevel
		/// </summary>
		[Entity(CNAreaLevel, 1, true)]
		public System.Int32 AreaLevel
		{
			get { return _AreaLevel; }
			set
			{
				if (!OnPropertyChanged(CNAreaLevel, _AreaLevel, value)) return;
				_AreaLevel = value;
				SetFieldChanged(CNAreaLevel) ;
			}
		}

		private System.String _PCode;
		/// <summary>
		/// PCode
		/// </summary>
		[Entity(CNPCode, 2)]
		public System.String PCode
		{
			get { return _PCode; }
			set
			{
				if (!OnPropertyChanged(CNPCode, _PCode, value)) return;
				_PCode = value;
				SetFieldChanged(CNPCode) ;
			}
		}

		private System.String _AreaName;
		/// <summary>
		/// AreaName
		/// </summary>
		[Entity(CNAreaName, 3, true)]
		public System.String AreaName
		{
			get { return _AreaName; }
			set
			{
				if (!OnPropertyChanged(CNAreaName, _AreaName, value)) return;
				_AreaName = value;
				SetFieldChanged(CNAreaName) ;
			}
		}

		private System.String _AreaNamePY;
		/// <summary>
		/// AreaNamePY
		/// </summary>
		[Entity(CNAreaNamePY, 4)]
		public System.String AreaNamePY
		{
			get { return _AreaNamePY; }
			set
			{
				if (!OnPropertyChanged(CNAreaNamePY, _AreaNamePY, value)) return;
				_AreaNamePY = value;
				SetFieldChanged(CNAreaNamePY) ;
			}
		}

		private System.String _AreaNameWB;
		/// <summary>
		/// AreaNameWB
		/// </summary>
		[Entity(CNAreaNameWB, 5)]
		public System.String AreaNameWB
		{
			get { return _AreaNameWB; }
			set
			{
				if (!OnPropertyChanged(CNAreaNameWB, _AreaNameWB, value)) return;
				_AreaNameWB = value;
				SetFieldChanged(CNAreaNameWB) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 6)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		#region 字段名的定义
		public const string CNAreaCode = "AreaCode";
		public const string CNAreaLevel = "AreaLevel";
		public const string CNPCode = "PCode";
		public const string CNAreaName = "AreaName";
		public const string CNAreaNamePY = "AreaNamePY";
		public const string CNAreaNameWB = "AreaNameWB";
		public const string CNRemark = "Remark";
		#endregion

	}
}
